package org.example.feign;

import org.example.dto.ExamsDTo;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class ExamControllerFallbackFactory implements FallbackFactory<ExamService> {


    @Override
    public ExamService create(Throwable cause) {
        return new ExamService() {
            @Override
            public ExamsDTo select(ExamsDTo examsDTo) {
                return new ExamsDTo();
            }
        };
    }
}
